package com.hyjx.framework.component.excel;

import java.util.List;
import java.util.Map;

/**
 * excel 导入处理结果类
 *
 * @author tiank  2016-08-26
 * version v1.0.0.0
 */
public class ExcelImportResult {

    private int total;//excel总的记录数
    private int succ;//导入成功数据
    private int error;//不能导入数据
    private List<Map> successMap = null;//使用表名导入，能够入库数据
    private List<Map> errorMap = null;//使用表名导入，不能够入库数据
    private List<Object> succList = null;//使用类名导入，能够入库数据，类型为类名对应的model
    private List<Object> errorList = null;//使用类名导入，不能够入库数据，类型为类名对应的model
    private List<String> errorMsg = null;//错误信息

    public ExcelImportResult(int total, int succ, int error,
                             List<Map> successMap, List<Map> errorMap, List<Object> succList,
                             List<Object> errorList, List<String> errorMsg) {
        super();
        this.total = total;
        this.succ = succ;
        this.error = error;
        this.successMap = successMap;
        this.errorMap = errorMap;
        this.succList = succList;
        this.errorList = errorList;
        this.errorMsg = errorMsg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getSucc() {
        return succ;
    }

    public void setSucc(int succ) {
        this.succ = succ;
    }

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public List<Map> getSuccessMap() {
        return successMap;
    }

    public void setSuccessMap(List<Map> successMap) {
        this.successMap = successMap;
    }

    public List<Map> getErrorMap() {
        return errorMap;
    }

    public void setErrorMap(List<Map> errorMap) {
        this.errorMap = errorMap;
    }

    public List<Object> getSuccList() {
        return succList;
    }

    public void setSuccList(List<Object> succList) {
        this.succList = succList;
    }

    public List<Object> getErrorList() {
        return errorList;
    }

    public void setErrorList(List<Object> errorList) {
        this.errorList = errorList;
    }

    public List<String> getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(List<String> errorMsg) {
        this.errorMsg = errorMsg;
    }
}
